﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WinnerCMS.WebControls.BootStrap
{
    public class Calendar : System.Web.UI.WebControls.Literal
    {
        protected override void Render(HtmlTextWriter writer)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendFormat("<div id=\"{0}\" class=\"input-group date\">", this.ID);
            sb.Append("<input type=\"text\" class=\"form-control\">");
            sb.Append("<span class=\"input-group-addon\"><i data-time-icon=\"icon-time\" data-date-icon=\"icon-calendar\"></i></span>");
            sb.AppendLine("</div>");

            writer.Write(sb.ToString());
        }

        public DateTime Value
        {
            get; set;
            
        }
    }
}